package com.xqboss.chain.enums;

import com.xqboss.common.enums.BaseEnum;

/**
 * @author Trent
 * @date 2023/8/31
 */
public enum UpChainStatusEnum implements BaseEnum<Integer> {
    NORMAL(0, "未上链"),
    PENDING(1, "上链中"),
    SUCCESS(2, "上链成功"),
    FAILED(-1, "上链失败"),

    ;

    private final int value;
    private final String msg;

    UpChainStatusEnum(int value, String msg){
        this.value = value;
        this.msg = msg;
    }

    @Override
    public Integer getValue() {
        return value;
    }

    @Override
    public String getMsg() {
        return msg;
    }
}
